﻿<%@ Page Title="Page" Language="C#" Theme="WebAdmin" MasterPageFile="~/WebAdmin/WebAdmin.master"
    AutoEventWireup="true" CodeFile="AddPage.aspx.cs" Inherits="WebAdmin_AddPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="contenttext">
        <div style="padding: 10px; text-align: left;">
            <h3 style="margin: 0px;">
                <asp:Literal ID="ltrtitle" runat="server"></asp:Literal></h3>
            <div id="message1" style="display:none;">Here's an info message.</div>

            <fieldset>
                <legend>Page Details</legend>
                <table width="100%">
                    <tr>
                        <td width="30%">
                            Select Template:
                        </td>
                        <td width="70%">
                            <asp:DropDownList Width="206px" ValidationGroup="Page" ID="DDLMasterPage" runat="server">
                            </asp:DropDownList>
                            <asp:RequiredFieldValidator ValidationGroup="Page" ID="RequiredFieldValidator1" runat="server"
                                ControlToValidate="DDLMasterPage" Display="Dynamic" ErrorMessage="Please select Template"
                                ForeColor="Red"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            File Name:
                        </td>
                        <td>
                            <asp:TextBox ID="txtFileName" ValidationGroup="Page" Width="200px" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ValidationGroup="Page" ID="RequiredFieldValidator2" runat="server"
                                ControlToValidate="txtFileName" Display="Dynamic" ErrorMessage="Required File Name"
                                ForeColor="Red"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="Only Alphanumeric allowed"
                                ValidationGroup="Page" ControlToValidate="txtFileName" ValidationExpression="^[a-zA-Z0-9_.]*$"
                                Display="Dynamic" ForeColor="Red"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Title
                        </td>
                        <td>
                            <asp:TextBox ID="txtTitle" Width="98%" ValidationGroup="Page" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtTitle"
                                Display="Dynamic" ValidationGroup="Page" ErrorMessage="Required Title" ForeColor="Red"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Meta Keywords
                        </td>
                        <td>
                            <asp:TextBox ID="txtMetaKeywords" Width="98%" ValidationGroup="Page" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Meta Description
                        </td>
                        <td>
                            <asp:TextBox ID="txtMetaDescriptions" TextMode="MultiLine" Width="98%" ValidationGroup="Page" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Make HomePage
                        </td>
                        <td>
                            <asp:CheckBox ID="chkMakeHomePage" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td>
                            <asp:Button ID="btnSave" CausesValidation="true" ValidationGroup="Page" Text="Save"
                                OnClick="btnSave_Click" runat="server" />
                        </td>
                    </tr>
                </table>
            </fieldset>
        </div>
    </div>
    
</asp:Content>
